package cn.study.service.impl;

import cn.study.entity.StudyCourse;
import cn.study.entity.StudyVideo;
import cn.study.mapper.StudyCourseMapper;
import cn.study.mapper.StudyVideoMapper;
import cn.study.service.StudyCourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 课程表 服务实现类
 * </p>
 *
 * @author qiao
 * @since 2020-06-22
 */
@Service
public class StudyCourseServiceImpl extends ServiceImpl<StudyCourseMapper, StudyCourse> implements StudyCourseService {
    @Resource
    StudyCourseMapper studyCourseMapper;

    @Override
    public List<StudyCourse> getByDepByRoleList(Integer id) {
        return studyCourseMapper.getByDepByRoleList(id);
    }

    @Override
    public List<StudyCourse> getCourseTypeList(Integer id) {
        return studyCourseMapper.getCourseTypeList(id);
    }

    @Override
    public List<StudyCourse> getCourseBITypeList(Integer id) {
        return studyCourseMapper.getCourseBITypeList(id);
    }

    @Override
    public StudyCourse getDetailsList(Integer id) {
        return studyCourseMapper.getDetailsList(id);
    }

}
